/*
 * @Author: HZK
 * @Date: 2020-08-31 15:33:22
 * @LastEditTime: 2020-08-31 21:03:21
 * @LastEditors: hanfengmi
 * @Description: 字符串
 */

// 模板字符串
// var a = 'xixi'
// `hello ${a}`

// 标签模板
//     tag`Hello ${a} xixi ${a}`
// function tag(stringArr,...values){
//     // stringArr = ['Hello ','xixi ']
// }

// 新方法

let s = 'http://fwq.index.com'
console.log(s.startsWith('http'))
console.log(s.includes('fwq'))
console.log(s.endsWith('com'))

let str = 'hello-'
console.log(str.repeat(4))

console.log('100'.padStart(16,'='))
console.log('10'.padStart(16,'='))
console.log('100000'.padStart(16,'='))



